package com.oo.packaging_2.meetting;

import java.util.Scanner;

/**
 * BoardroomTest--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-19 16:36
 **/
public class BoardroomTest {

    public static void main(String[] args) {
        Boardroom one = new Boardroom(1, "第一会议室", "used");
        Boardroom two = new Boardroom(2, "第二会议室", "noused");
        System.out.println("请输入申请人姓名：");
        Scanner sc = new Scanner(System.in);
        String name = sc.nextLine();
        if ("success".equals(one.bespeak(name))) {
            two.bespeak(name);
        }
    }
}
